package service

import (
	"github.com/gofiber/fiber/v2"
	"guns-excel/internal/app/model"
	"guns-excel/internal/app/repository"
	"guns-excel/internal/pkg/database"
)

func GetModels(ctx *fiber.Ctx, dataBaseName string) ([]*model.Tables, error) {
	return repository.GetModels(ctx, dataBaseName, database.MysqlDB)
}

func GetFieldByTableName(ctx *fiber.Ctx, dataBaseName, tableName string) (*[]model.TableField, error) {
	return repository.GetFieldByTableName(ctx, dataBaseName, tableName, database.MysqlDB)
}
